﻿@model PagingDataSet<BlogThread>
@{
    Layout = "app-list-2cols";
    Html.IncludeCss("~/Applications/Blog/Styles/app.css", ResourceRenderPriority.Last);
    Html.IncludeScript("~/Applications/Blog/Scripts/jquery.spb.blog.js", ResourceRenderPriority.Last);
    ViewData["isSubscribePage"] = true;
}
@section Aside{
    @Html.Action("_Categories", "Blog", new { spaceKey = Url.SpaceKey() })
    @Html.Action("_Tags", "Blog", new { spaceKey = Url.SpaceKey() })
    @Html.Action("_Archives", "Blog", new { spaceKey = Url.SpaceKey() })
}
<div id="subscribedBlog" class="tn-box tn-widget tn-widget-content tn-corner-all spb-blog-list">
    <div class="tn-box-content tn-widget-content tn-corner-all">
    @if (Model != null && Model.Count > 0)
    { 
        <div class=" spb-blog-list-wrap">
            <ul class="tn-list">
            @foreach (BlogThread blogThread in Model)
            {
                @Html.Partial("_Blog", blogThread,ViewData)
            }
            </ul>
        </div>
        <div class="tn-pagination">
            @Html.PagingButton(Model, PaginationMode.NumericNextPrevious)
            @Html.PagingResults(Model)
        </div>
    }
    else
    { 
        <div class="tn-no-data">
            还没有日志。
        </div>
    }
    </div>
</div>
